package leetcode.code1578;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class S1578 implements IDebug {

	public abstract int minCost(String s, int[] cost);

	@Override
	public void debug1() {
		int r = this.minCost("abaac", HelpDebug.str2array3("[1,2,3,4,5]"));
		int e = 3;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		int r = this.minCost("abc", HelpDebug.str2array3("[1,2,3]"));
		int e = 0;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		int r = this.minCost("aabaa", HelpDebug.str2array3("[1,2,3,4,1]"));
		int e = 2;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		int r = this.minCost("bbbaaa", HelpDebug.str2array3("[4,9,3,8,8,9]"));
		int e = 23;
		HelpDebug.compare(e, r);
	}

	public void debug65() {

		int r = this.minCost("aaabbbabbbb", HelpDebug.str2array3("[3,5,10,7,5,3,5,5,4,8,1]"));
		int e = 26;
		HelpDebug.compare(e, r);
	}

}
